﻿using System.Linq;
using System.Data.Linq;
using UniMana.Data;

namespace UniMana.Data
{
    public static class Catalogue_DistrictData
    {
        public static IQueryable<Catalogue_District>
            GetListByCityKey(this Table<Catalogue_District> dt, 
                            int CityKey)
        {
            return dt.Where(p => p.Catalogue_CityKey == CityKey).Distinct();
        }
    }
}